.class public Lcom/zuimeia/ui/musiccontroller/MusicControllerView;
.super Landroid/widget/LinearLayout;
.source "MusicControllerView.java"

# interfaces
.implements Lcom/zuimeia/ui/musiccontroller/IMusicController;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/zuimeia/ui/musiccontroller/MusicControllerView$OnMusicPlayStateChangeListener;,
        Lcom/zuimeia/ui/musiccontroller/MusicControllerView$OnVisibilityChangedListener;
    }
.end annotation


# static fields
.field public static final TAG:Ljava/lang/String; = "MyMusic"

.field private static final UPDATE_PLAY_STATE_DELAY:I = 0xbb8


# instance fields
.field private mAudioManager:Landroid/media/AudioManager;

.field private mDp_5:I

.field private mHandler:Landroid/os/Handler;

.field private mIsMusicActive:Z

.field private mMediaController:Landroid/media/session/MediaController;

.field private mMusicInfoBox:Landroid/view/View;

.field private mMusicNameTxt:Landroid/widget/TextView;

.field private mMusicNoteImg:Landroid/widget/ImageView;

.field private mMusicPlayStateChanegeListener:Lcom/zuimeia/ui/musiccontroller/MusicControllerView$OnMusicPlayStateChangeListener;

.field private mNextBtn:Landroid/widget/ImageView;

.field private mOnVisibilityChangedListeners:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcom/zuimeia/ui/musiccontroller/MusicControllerView$OnVisibilityChangedListener;",
            ">;"
        }
    .end annotation
.end field

.field private mPlayPauseBtn:Landroid/widget/ImageView;

.field private mPrevBtn:Landroid/widget/ImageView;

.field private mRemoteController:Landroid/media/RemoteController;

.field private mUnSupportMediaSessionList:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private mUnsupportControlList:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private mUnsupportOldMusicApiList:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private mUseNewApi:Z

.field private updatePlayStatusTask:Ljava/lang/Runnable;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .registers 3
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    .line 72
    invoke-direct {p0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 62
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mUseNewApi:Z

    .line 68
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mOnVisibilityChangedListeners:Ljava/util/ArrayList;

    .line 591
    new-instance v0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$7;

    invoke-direct {v0, p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$7;-><init>(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)V

    iput-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->updatePlayStatusTask:Ljava/lang/Runnable;

    .line 73
    invoke-direct {p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->init()V

    .line 74
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .registers 4
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;

    .prologue
    .line 77
    invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 62
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mUseNewApi:Z

    .line 68
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mOnVisibilityChangedListeners:Ljava/util/ArrayList;

    .line 591
    new-instance v0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$7;

    invoke-direct {v0, p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$7;-><init>(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)V

    iput-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->updatePlayStatusTask:Ljava/lang/Runnable;

    .line 78
    invoke-direct {p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->init()V

    .line 79
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .registers 5
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;
    .param p3, "defStyle"    # I

    .prologue
    .line 82
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 62
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mUseNewApi:Z

    .line 68
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mOnVisibilityChangedListeners:Ljava/util/ArrayList;

    .line 591
    new-instance v0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$7;

    invoke-direct {v0, p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$7;-><init>(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)V

    iput-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->updatePlayStatusTask:Ljava/lang/Runnable;

    .line 83
    invoke-direct {p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->init()V

    .line 84
    return-void
.end method

.method static synthetic access$000(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Landroid/widget/TextView;
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    .prologue
    .line 41
    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMusicNameTxt:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$100(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)I
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    .prologue
    .line 41
    iget v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mDp_5:I

    return v0
.end method

.method static synthetic access$1000(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Ljava/util/List;
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    .prologue
    .line 41
    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mUnsupportControlList:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$1100(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Ljava/util/ArrayList;
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    .prologue
    .line 41
    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mOnVisibilityChangedListeners:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic access$1200(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;Z)V
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/musiccontroller/MusicControllerView;
    .param p1, "x1"    # Z

    .prologue
    .line 41
    invoke-direct {p0, p1}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->performVisibilityChangeListener(Z)V

    return-void
.end method

.method static synthetic access$1300(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)V
    .registers 1
    .param p0, "x0"    # Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    .prologue
    .line 41
    invoke-direct {p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->updatePlayPauseBtnStatus()V

    return-void
.end method

.method static synthetic access$1400(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;I)V
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/musiccontroller/MusicControllerView;
    .param p1, "x1"    # I

    .prologue
    .line 41
    invoke-direct {p0, p1}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->performKeycode(I)V

    return-void
.end method

.method static synthetic access$1500(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Z
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    .prologue
    .line 41
    iget-boolean v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mUseNewApi:Z

    return v0
.end method

.method static synthetic access$1600(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Ljava/lang/Runnable;
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    .prologue
    .line 41
    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->updatePlayStatusTask:Ljava/lang/Runnable;

    return-object v0
.end method

.method static synthetic access$1700(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Landroid/os/Handler;
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    .prologue
    .line 41
    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mHandler:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$200(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Landroid/media/RemoteController;
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    .prologue
    .line 41
    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mRemoteController:Landroid/media/RemoteController;

    return-object v0
.end method

.method static synthetic access$202(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;Landroid/media/RemoteController;)Landroid/media/RemoteController;
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/musiccontroller/MusicControllerView;
    .param p1, "x1"    # Landroid/media/RemoteController;

    .prologue
    .line 41
    iput-object p1, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mRemoteController:Landroid/media/RemoteController;

    return-object p1
.end method

.method static synthetic access$300(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Landroid/media/AudioManager;
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    .prologue
    .line 41
    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mAudioManager:Landroid/media/AudioManager;

    return-object v0
.end method

.method static synthetic access$400(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Z
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    .prologue
    .line 41
    iget-boolean v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mIsMusicActive:Z

    return v0
.end method

.method static synthetic access$402(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;Z)Z
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/musiccontroller/MusicControllerView;
    .param p1, "x1"    # Z

    .prologue
    .line 41
    iput-boolean p1, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mIsMusicActive:Z

    return p1
.end method

.method static synthetic access$500(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Ljava/lang/String;
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    .prologue
    .line 41
    invoke-direct {p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->getCurMediaPlayerComponentName()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$600(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Landroid/media/session/MediaController;
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    .prologue
    .line 41
    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMediaController:Landroid/media/session/MediaController;

    return-object v0
.end method

.method static synthetic access$700(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Ljava/util/List;
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    .prologue
    .line 41
    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mUnSupportMediaSessionList:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$800(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;I)Z
    .registers 3
    .param p0, "x0"    # Lcom/zuimeia/ui/musiccontroller/MusicControllerView;
    .param p1, "x1"    # I

    .prologue
    .line 41
    invoke-direct {p0, p1}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->isPlayingState(I)Z

    move-result v0

    return v0
.end method

.method static synthetic access$900(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Ljava/util/List;
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    .prologue
    .line 41
    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mUnsupportOldMusicApiList:Ljava/util/List;

    return-object v0
.end method

.method private animateFadeInOut(Landroid/view/View;)V
    .registers 6
    .param p1, "view"    # Landroid/view/View;

    .prologue
    .line 476
    invoke-virtual {p1}, Landroid/view/View;->getAnimation()Landroid/view/animation/Animation;

    move-result-object v1

    .line 477
    .local v1, "animation":Landroid/view/animation/Animation;
    if-eqz v1, :cond_d

    invoke-virtual {v1}, Landroid/view/animation/Animation;->hasStarted()Z

    move-result v2

    if-eqz v2, :cond_d

    .line 488
    :goto_c
    return-void

    .line 481
    :cond_d
    new-instance v0, Landroid/view/animation/AlphaAnimation;

    const/high16 v2, 0x3f800000

    const v3, 0x3dcccccd

    invoke-direct {v0, v2, v3}, Landroid/view/animation/AlphaAnimation;-><init>(FF)V

    .line 482
    .local v0, "alphaAnimation":Landroid/view/animation/AlphaAnimation;
    const-wide/16 v2, 0x3e8

    invoke-virtual {v0, v2, v3}, Landroid/view/animation/AlphaAnimation;->setDuration(J)V

    .line 483
    const/4 v2, 0x2

    invoke-virtual {v0, v2}, Landroid/view/animation/AlphaAnimation;->setRepeatMode(I)V

    .line 484
    const/4 v2, -0x1

    invoke-virtual {v0, v2}, Landroid/view/animation/AlphaAnimation;->setRepeatCount(I)V

    .line 485
    new-instance v2, Landroid/view/animation/AccelerateDecelerateInterpolator;

    invoke-direct {v2}, Landroid/view/animation/AccelerateDecelerateInterpolator;-><init>()V

    invoke-virtual {v0, v2}, Landroid/view/animation/AlphaAnimation;->setInterpolator(Landroid/view/animation/Interpolator;)V

    .line 486
    invoke-virtual {p1, v0}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V

    goto :goto_c
.end method

.method private cancelAnimation(Landroid/view/View;)V
    .registers 3
    .param p1, "view"    # Landroid/view/View;

    .prologue
    .line 491
    invoke-virtual {p1}, Landroid/view/View;->getAnimation()Landroid/view/animation/Animation;

    move-result-object v0

    .line 492
    .local v0, "animation":Landroid/view/animation/Animation;
    if-eqz v0, :cond_c

    .line 493
    invoke-virtual {v0}, Landroid/view/animation/Animation;->cancel()V

    .line 494
    invoke-virtual {p1}, Landroid/view/View;->clearAnimation()V

    .line 496
    :cond_c
    return-void
.end method

.method private getCurMediaPlayerComponentName()Ljava/lang/String;
    .registers 3

    .prologue
    .line 424
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x15

    if-lt v0, v1, :cond_11

    .line 425
    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMediaController:Landroid/media/session/MediaController;

    if-eqz v0, :cond_11

    .line 426
    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMediaController:Landroid/media/session/MediaController;

    invoke-virtual {v0}, Landroid/media/session/MediaController;->getPackageName()Ljava/lang/String;

    move-result-object v0

    .line 429
    :goto_10
    return-object v0

    :cond_11
    invoke-virtual {p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/zuimeia/ui/musiccontroller/MusicControlUtils;->getCurMediaPlayerComponentName(Landroid/content/Context;)Landroid/content/ComponentName;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;

    move-result-object v0

    goto :goto_10
.end method

.method private init()V
    .registers 4
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    .prologue
    .line 88
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mHandler:Landroid/os/Handler;

    .line 89
    invoke-virtual {p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->getContext()Landroid/content/Context;

    move-result-object v0

    const-string v1, "audio"

    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/media/AudioManager;

    iput-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mAudioManager:Landroid/media/AudioManager;

    .line 91
    invoke-virtual {p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    sget v1, Lcom/zuimeia/ui/R$array;->unsupport_old_music_api_list:I

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mUnsupportOldMusicApiList:Ljava/util/List;

    .line 92
    invoke-virtual {p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    sget v1, Lcom/zuimeia/ui/R$array;->unsupport_control_list:I

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mUnsupportControlList:Ljava/util/List;

    .line 93
    invoke-virtual {p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    sget v1, Lcom/zuimeia/ui/R$array;->unsupport_media_session_list:I

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mUnSupportMediaSessionList:Ljava/util/List;

    .line 94
    const/4 v0, 0x1

    const/high16 v1, 0x40a00000

    invoke-virtual {p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-virtual {v2}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v2

    invoke-static {v0, v1, v2}, Landroid/util/TypedValue;->applyDimension(IFLandroid/util/DisplayMetrics;)F

    move-result v0

    float-to-int v0, v0

    iput v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mDp_5:I

    .line 96
    invoke-direct {p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->initWidgets()V

    .line 97
    invoke-direct {p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->initWidgetsActions()V

    .line 98
    return-void
.end method

.method private initWidgets()V
    .registers 3

    .prologue
    .line 128
    invoke-virtual {p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->getContext()Landroid/content/Context;

    move-result-object v0

    sget v1, Lcom/zuimeia/ui/R$layout;->music_controller_view:I

    invoke-static {v0, v1, p0}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    .line 129
    const/16 v0, 0x11

    invoke-virtual {p0, v0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->setGravity(I)V

    .line 131
    sget v0, Lcom/zuimeia/ui/R$id;->box_music_info:I

    invoke-virtual {p0, v0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMusicInfoBox:Landroid/view/View;

    .line 132
    sget v0, Lcom/zuimeia/ui/R$id;->txt_music_name:I

    invoke-virtual {p0, v0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMusicNameTxt:Landroid/widget/TextView;

    .line 133
    sget v0, Lcom/zuimeia/ui/R$id;->img_music_note:I

    invoke-virtual {p0, v0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMusicNoteImg:Landroid/widget/ImageView;

    .line 134
    sget v0, Lcom/zuimeia/ui/R$id;->img_music_prev:I

    invoke-virtual {p0, v0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mPrevBtn:Landroid/widget/ImageView;

    .line 135
    sget v0, Lcom/zuimeia/ui/R$id;->img_music_play_pause:I

    invoke-virtual {p0, v0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mPlayPauseBtn:Landroid/widget/ImageView;

    .line 136
    sget v0, Lcom/zuimeia/ui/R$id;->img_music_next:I

    invoke-virtual {p0, v0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mNextBtn:Landroid/widget/ImageView;

    .line 138
    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMusicNameTxt:Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->requestFocus()Z

    .line 139
    return-void
.end method

.method private initWidgetsActions()V
    .registers 3

    .prologue
    .line 142
    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMusicNameTxt:Landroid/widget/TextView;

    new-instance v1, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$1;

    invoke-direct {v1, p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$1;-><init>(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 164
    new-instance v0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;

    invoke-direct {v0, p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;-><init>(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)V

    invoke-virtual {p0, v0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->addOnAttachStateChangeListener(Landroid/view/View$OnAttachStateChangeListener;)V

    .line 258
    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mPrevBtn:Landroid/widget/ImageView;

    new-instance v1, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$3;

    invoke-direct {v1, p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$3;-><init>(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 277
    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mPlayPauseBtn:Landroid/widget/ImageView;

    new-instance v1, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$4;

    invoke-direct {v1, p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$4;-><init>(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 295
    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mNextBtn:Landroid/widget/ImageView;

    new-instance v1, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$5;

    invoke-direct {v1, p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$5;-><init>(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 314
    return-void
.end method

.method private isPlayingState(I)Z
    .registers 3
    .param p1, "state"    # I

    .prologue
    .line 415
    const/4 v0, 0x3

    if-eq p1, v0, :cond_c

    const/4 v0, 0x6

    if-eq p1, v0, :cond_c

    const/4 v0, 0x4

    if-eq p1, v0, :cond_c

    const/4 v0, 0x5

    if-ne p1, v0, :cond_e

    .line 417
    :cond_c
    const/4 v0, 0x1

    .line 420
    :goto_d
    return v0

    :cond_e
    const/4 v0, 0x0

    goto :goto_d
.end method

.method private performKeycode(I)V
    .registers 9
    .param p1, "keyCode"    # I
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    .prologue
    const/4 v6, 0x1

    const/4 v5, 0x0

    .line 509
    invoke-direct {p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->getCurMediaPlayerComponentName()Ljava/lang/String;

    move-result-object v1

    .line 510
    .local v1, "packageName":Ljava/lang/String;
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMediaController:Landroid/media/session/MediaController;

    if-eqz v3, :cond_62

    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mUnSupportMediaSessionList:Ljava/util/List;

    invoke-interface {v3, v1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_62

    .line 512
    packed-switch p1, :pswitch_data_bc

    .line 559
    :goto_15
    :pswitch_15
    return-void

    .line 514
    :pswitch_16
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMediaController:Landroid/media/session/MediaController;

    invoke-virtual {v3}, Landroid/media/session/MediaController;->getTransportControls()Landroid/media/session/MediaController$TransportControls;

    move-result-object v3

    invoke-virtual {v3}, Landroid/media/session/MediaController$TransportControls;->skipToPrevious()V

    .line 515
    const-string v3, "MyMusic"

    const-string v4, "performKeycode skipToPrevious"

    invoke-static {v3, v4}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_15

    .line 520
    :pswitch_27
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mAudioManager:Landroid/media/AudioManager;

    invoke-virtual {v3}, Landroid/media/AudioManager;->isMusicActive()Z

    move-result v3

    if-eqz v3, :cond_40

    .line 521
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMediaController:Landroid/media/session/MediaController;

    invoke-virtual {v3}, Landroid/media/session/MediaController;->getTransportControls()Landroid/media/session/MediaController$TransportControls;

    move-result-object v3

    invoke-virtual {v3}, Landroid/media/session/MediaController$TransportControls;->pause()V

    .line 522
    const-string v3, "MyMusic"

    const-string v4, "performKeycode pause"

    invoke-static {v3, v4}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_15

    .line 524
    :cond_40
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMediaController:Landroid/media/session/MediaController;

    invoke-virtual {v3}, Landroid/media/session/MediaController;->getTransportControls()Landroid/media/session/MediaController$TransportControls;

    move-result-object v3

    invoke-virtual {v3}, Landroid/media/session/MediaController$TransportControls;->play()V

    .line 525
    const-string v3, "MyMusic"

    const-string v4, "performKeycode play"

    invoke-static {v3, v4}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_15

    .line 529
    :pswitch_51
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMediaController:Landroid/media/session/MediaController;

    invoke-virtual {v3}, Landroid/media/session/MediaController;->getTransportControls()Landroid/media/session/MediaController$TransportControls;

    move-result-object v3

    invoke-virtual {v3}, Landroid/media/session/MediaController$TransportControls;->skipToNext()V

    .line 530
    const-string v3, "MyMusic"

    const-string v4, "performKeycode skipToNext"

    invoke-static {v3, v4}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_15

    .line 537
    :cond_62
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mRemoteController:Landroid/media/RemoteController;

    if-eqz v3, :cond_83

    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mUnsupportControlList:Ljava/util/List;

    invoke-interface {v3, v1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_83

    .line 538
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mRemoteController:Landroid/media/RemoteController;

    new-instance v4, Landroid/view/KeyEvent;

    invoke-direct {v4, v5, p1}, Landroid/view/KeyEvent;-><init>(II)V

    invoke-virtual {v3, v4}, Landroid/media/RemoteController;->sendMediaKeyEvent(Landroid/view/KeyEvent;)Z

    .line 539
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mRemoteController:Landroid/media/RemoteController;

    new-instance v4, Landroid/view/KeyEvent;

    invoke-direct {v4, v6, p1}, Landroid/view/KeyEvent;-><init>(II)V

    invoke-virtual {v3, v4}, Landroid/media/RemoteController;->sendMediaKeyEvent(Landroid/view/KeyEvent;)Z

    goto :goto_15

    .line 548
    :cond_83
    new-instance v0, Landroid/content/Intent;

    const-string v3, "android.intent.action.MEDIA_BUTTON"

    invoke-direct {v0, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 549
    .local v0, "downIntent":Landroid/content/Intent;
    const-string v3, "android.intent.extra.KEY_EVENT"

    new-instance v4, Landroid/view/KeyEvent;

    invoke-direct {v4, v5, p1}, Landroid/view/KeyEvent;-><init>(II)V

    invoke-virtual {v0, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 551
    invoke-virtual {v0, v1}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;

    .line 552
    invoke-virtual {p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->getContext()Landroid/content/Context;

    move-result-object v3

    invoke-virtual {v3, v0}, Landroid/content/Context;->sendBroadcast(Landroid/content/Intent;)V

    .line 554
    new-instance v2, Landroid/content/Intent;

    const-string v3, "android.intent.action.MEDIA_BUTTON"

    invoke-direct {v2, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 555
    .local v2, "upIntent":Landroid/content/Intent;
    const-string v3, "android.intent.extra.KEY_EVENT"

    new-instance v4, Landroid/view/KeyEvent;

    invoke-direct {v4, v6, p1}, Landroid/view/KeyEvent;-><init>(II)V

    invoke-virtual {v2, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 557
    invoke-virtual {v2, v1}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;

    .line 558
    invoke-virtual {p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->getContext()Landroid/content/Context;

    move-result-object v3

    invoke-virtual {v3, v2}, Landroid/content/Context;->sendBroadcast(Landroid/content/Intent;)V

    goto/16 :goto_15

    .line 512
    nop

    :pswitch_data_bc
    .packed-switch 0x55
        :pswitch_27
        :pswitch_15
        :pswitch_51
        :pswitch_16
    .end packed-switch
.end method

.method private performVisibilityChangeListener(Z)V
    .registers 5
    .param p1, "showing"    # Z

    .prologue
    .line 317
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_1
    iget-object v2, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mOnVisibilityChangedListeners:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-ge v0, v2, :cond_19

    .line 318
    iget-object v2, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mOnVisibilityChangedListeners:Ljava/util/ArrayList;

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$OnVisibilityChangedListener;

    .line 319
    .local v1, "listener":Lcom/zuimeia/ui/musiccontroller/MusicControllerView$OnVisibilityChangedListener;
    if-eqz v1, :cond_16

    .line 320
    invoke-interface {v1, p1}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$OnVisibilityChangedListener;->onVisibilityChanged(Z)V

    .line 317
    :cond_16
    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    .line 323
    .end local v1    # "listener":Lcom/zuimeia/ui/musiccontroller/MusicControllerView$OnVisibilityChangedListener;
    :cond_19
    return-void
.end method

.method private registerMediaContorller(Landroid/media/RemoteController$OnClientUpdateListener;)V
    .registers 15
    .param p1, "listener"    # Landroid/media/RemoteController$OnClientUpdateListener;
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    .prologue
    const/4 v12, 0x1

    .line 340
    :try_start_1
    invoke-virtual {p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->getContext()Landroid/content/Context;

    move-result-object v9

    const-string v10, "media_session"

    invoke-virtual {v9, v10}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Landroid/media/session/MediaSessionManager;

    .line 341
    .local v5, "mediaSessionManager":Landroid/media/session/MediaSessionManager;
    new-instance v9, Landroid/content/ComponentName;

    invoke-virtual {p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->getContext()Landroid/content/Context;

    move-result-object v10

    invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v11

    invoke-direct {v9, v10, v11}, Landroid/content/ComponentName;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-virtual {v5, v9}, Landroid/media/session/MediaSessionManager;->getActiveSessions(Landroid/content/ComponentName;)Ljava/util/List;

    move-result-object v0

    .line 343
    .local v0, "activeSessions":Ljava/util/List;, "Ljava/util/List<Landroid/media/session/MediaController;>;"
    const/4 v4, 0x0

    .local v4, "i":I
    :goto_1f
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v9

    if-ge v4, v9, :cond_4d

    .line 349
    invoke-interface {v0, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Landroid/media/session/MediaController;

    invoke-virtual {v9}, Landroid/media/session/MediaController;->getPlaybackState()Landroid/media/session/PlaybackState;

    move-result-object v9

    if-eqz v9, :cond_bd

    .line 353
    invoke-interface {v0, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Landroid/media/session/MediaController;

    invoke-virtual {v9}, Landroid/media/session/MediaController;->getPlaybackState()Landroid/media/session/PlaybackState;

    move-result-object v9

    invoke-virtual {v9}, Landroid/media/session/PlaybackState;->getState()I

    move-result v7

    .line 354
    .local v7, "state":I
    invoke-direct {p0, v7}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->isPlayingState(I)Z

    move-result v9

    if-eqz v9, :cond_bd

    .line 355
    invoke-interface {v0, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Landroid/media/session/MediaController;

    iput-object v9, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMediaController:Landroid/media/session/MediaController;

    .line 361
    .end local v7    # "state":I
    :cond_4d
    iget-object v9, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMediaController:Landroid/media/session/MediaController;

    if-nez v9, :cond_7e

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v9

    if-nez v9, :cond_7e

    .line 362
    const/4 v9, 0x0

    invoke-interface {v0, v9}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Landroid/media/session/MediaController;

    iput-object v9, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMediaController:Landroid/media/session/MediaController;

    .line 363
    const/4 v9, 0x0

    invoke-interface {v0, v9}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Landroid/media/session/MediaController;

    const-string v10, "com.kugou.android"

    invoke-virtual {v9, v10}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_7e

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v9

    if-le v9, v12, :cond_7e

    .line 364
    const/4 v9, 0x1

    invoke-interface {v0, v9}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Landroid/media/session/MediaController;

    iput-object v9, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMediaController:Landroid/media/session/MediaController;

    .line 368
    :cond_7e
    iget-object v9, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMediaController:Landroid/media/session/MediaController;

    if-eqz v9, :cond_bc

    .line 369
    iget-object v9, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMediaController:Landroid/media/session/MediaController;

    invoke-virtual {v9}, Landroid/media/session/MediaController;->getMetadata()Landroid/media/MediaMetadata;

    move-result-object v9

    if-eqz v9, :cond_b2

    .line 370
    iget-object v9, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMediaController:Landroid/media/session/MediaController;

    invoke-virtual {v9}, Landroid/media/session/MediaController;->getMetadata()Landroid/media/MediaMetadata;

    move-result-object v6

    .line 371
    .local v6, "metadata":Landroid/media/MediaMetadata;
    const-string v9, "android.media.metadata.TITLE"

    invoke-virtual {v6, v9}, Landroid/media/MediaMetadata;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    .line 372
    .local v8, "title":Ljava/lang/String;
    const-string v9, "android.media.metadata.ARTIST"

    invoke-virtual {v6, v9}, Landroid/media/MediaMetadata;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 373
    .local v2, "artist":Ljava/lang/String;
    const-string v9, "android.media.metadata.ALBUM_ARTIST"

    invoke-virtual {v6, v9}, Landroid/media/MediaMetadata;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 374
    .local v1, "albumArtist":Ljava/lang/String;
    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v9

    if-eqz v9, :cond_af

    .line 375
    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v9

    if-nez v9, :cond_af

    .line 376
    move-object v2, v1

    .line 380
    :cond_af
    invoke-virtual {p0, v8, v2}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->onClientMetadataUpdate(Ljava/lang/String;Ljava/lang/String;)V

    .line 383
    .end local v1    # "albumArtist":Ljava/lang/String;
    .end local v2    # "artist":Ljava/lang/String;
    .end local v6    # "metadata":Landroid/media/MediaMetadata;
    .end local v8    # "title":Ljava/lang/String;
    :cond_b2
    iget-object v9, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMediaController:Landroid/media/session/MediaController;

    new-instance v10, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$6;

    invoke-direct {v10, p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$6;-><init>(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)V

    invoke-virtual {v9, v10}, Landroid/media/session/MediaController;->registerCallback(Landroid/media/session/MediaController$Callback;)V
    :try_end_bc
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_bc} :catch_c1

    .line 412
    .end local v0    # "activeSessions":Ljava/util/List;, "Ljava/util/List<Landroid/media/session/MediaController;>;"
    .end local v4    # "i":I
    .end local v5    # "mediaSessionManager":Landroid/media/session/MediaSessionManager;
    :cond_bc
    :goto_bc
    return-void

    .line 343
    .restart local v0    # "activeSessions":Ljava/util/List;, "Ljava/util/List<Landroid/media/session/MediaController;>;"
    .restart local v4    # "i":I
    .restart local v5    # "mediaSessionManager":Landroid/media/session/MediaSessionManager;
    :cond_bd
    add-int/lit8 v4, v4, 0x1

    goto/16 :goto_1f

    .line 407
    .end local v0    # "activeSessions":Ljava/util/List;, "Ljava/util/List<Landroid/media/session/MediaController;>;"
    .end local v4    # "i":I
    .end local v5    # "mediaSessionManager":Landroid/media/session/MediaSessionManager;
    :catch_c1
    move-exception v3

    .line 408
    .local v3, "e":Ljava/lang/Exception;
    invoke-virtual {v3}, Ljava/lang/Exception;->printStackTrace()V

    .line 409
    const/16 v9, 0x8

    invoke-virtual {p0, v9}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->setVisibility(I)V

    goto :goto_bc
.end method

.method private updatePlayPauseBtnStatus()V
    .registers 3

    .prologue
    .line 441
    iget-object v1, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mPlayPauseBtn:Landroid/widget/ImageView;

    iget-boolean v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mIsMusicActive:Z

    if-eqz v0, :cond_13

    sget v0, Lcom/zuimeia/ui/R$drawable;->icon_music_pause_selector:I

    :goto_8
    invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 443
    iget-boolean v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mIsMusicActive:Z

    if-eqz v0, :cond_16

    .line 444
    invoke-virtual {p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->startMusicNoteAnimation()V

    .line 448
    :goto_12
    return-void

    .line 441
    :cond_13
    sget v0, Lcom/zuimeia/ui/R$drawable;->icon_music_play_selector:I

    goto :goto_8

    .line 446
    :cond_16
    invoke-virtual {p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->stopMusicNoteAnimation()V

    goto :goto_12
.end method


# virtual methods
.method public addOnVisibilityChangedListener(Lcom/zuimeia/ui/musiccontroller/MusicControllerView$OnVisibilityChangedListener;)V
    .registers 3
    .param p1, "listener"    # Lcom/zuimeia/ui/musiccontroller/MusicControllerView$OnVisibilityChangedListener;

    .prologue
    .line 434
    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mOnVisibilityChangedListeners:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_d

    .line 435
    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mOnVisibilityChangedListeners:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 437
    :cond_d
    return-void
.end method

.method public isRunning(Ljava/lang/String;)Z
    .registers 11
    .param p1, "packageName"    # Ljava/lang/String;

    .prologue
    const/4 v6, 0x1

    const/4 v7, 0x0

    .line 102
    :try_start_2
    invoke-virtual {p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->getContext()Landroid/content/Context;

    move-result-object v5

    const-string v8, "activity"

    invoke-virtual {v5, v8}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/ActivityManager;

    .line 104
    .local v0, "am":Landroid/app/ActivityManager;
    sget v5, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v8, 0x15

    if-lt v5, v8, :cond_35

    .line 105
    invoke-virtual {v0}, Landroid/app/ActivityManager;->getRunningAppProcesses()Ljava/util/List;

    move-result-object v3

    .line 106
    .local v3, "runningAppProcesses":Ljava/util/List;, "Ljava/util/List<Landroid/app/ActivityManager$RunningAppProcessInfo;>;"
    const/4 v2, 0x0

    .local v2, "i":I
    :goto_19
    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v5

    if-ge v2, v5, :cond_5e

    .line 107
    invoke-interface {v3, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Landroid/app/ActivityManager$RunningAppProcessInfo;

    iget-object v5, v5, Landroid/app/ActivityManager$RunningAppProcessInfo;->pkgList:[Ljava/lang/String;

    const/4 v8, 0x0

    aget-object v5, v5, v8

    invoke-virtual {p1, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_32

    move v5, v6

    .line 124
    .end local v0    # "am":Landroid/app/ActivityManager;
    .end local v2    # "i":I
    .end local v3    # "runningAppProcesses":Ljava/util/List;, "Ljava/util/List<Landroid/app/ActivityManager$RunningAppProcessInfo;>;"
    :goto_31
    return v5

    .line 106
    .restart local v0    # "am":Landroid/app/ActivityManager;
    .restart local v2    # "i":I
    .restart local v3    # "runningAppProcesses":Ljava/util/List;, "Ljava/util/List<Landroid/app/ActivityManager$RunningAppProcessInfo;>;"
    :cond_32
    add-int/lit8 v2, v2, 0x1

    goto :goto_19

    .line 112
    .end local v2    # "i":I
    .end local v3    # "runningAppProcesses":Ljava/util/List;, "Ljava/util/List<Landroid/app/ActivityManager$RunningAppProcessInfo;>;"
    :cond_35
    const v5, 0x7fffffff

    invoke-virtual {v0, v5}, Landroid/app/ActivityManager;->getRunningTasks(I)Ljava/util/List;

    move-result-object v4

    .line 113
    .local v4, "runningTaskInfos":Ljava/util/List;, "Ljava/util/List<Landroid/app/ActivityManager$RunningTaskInfo;>;"
    const/4 v2, 0x0

    .restart local v2    # "i":I
    :goto_3d
    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v5

    if-ge v2, v5, :cond_5e

    .line 114
    invoke-interface {v4, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Landroid/app/ActivityManager$RunningTaskInfo;

    iget-object v5, v5, Landroid/app/ActivityManager$RunningTaskInfo;->baseActivity:Landroid/content/ComponentName;

    invoke-virtual {v5}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {p1, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
    :try_end_52
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_52} :catch_5a

    move-result v5

    if-eqz v5, :cond_57

    move v5, v6

    .line 115
    goto :goto_31

    .line 113
    :cond_57
    add-int/lit8 v2, v2, 0x1

    goto :goto_3d

    .line 120
    .end local v0    # "am":Landroid/app/ActivityManager;
    .end local v2    # "i":I
    .end local v4    # "runningTaskInfos":Ljava/util/List;, "Ljava/util/List<Landroid/app/ActivityManager$RunningTaskInfo;>;"
    :catch_5a
    move-exception v1

    .line 121
    .local v1, "e":Ljava/lang/Exception;
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    .end local v1    # "e":Ljava/lang/Exception;
    :cond_5e
    move v5, v7

    .line 124
    goto :goto_31
.end method

.method public onClientChange(Z)V
    .registers 6
    .param p1, "clearing"    # Z

    .prologue
    const/16 v3, 0x8

    const/4 v2, 0x0

    .line 630
    iget-boolean v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mUseNewApi:Z

    if-eqz v0, :cond_29

    .line 632
    if-eqz p1, :cond_2a

    invoke-virtual {p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->getVisibility()I

    move-result v0

    if-eq v0, v3, :cond_2a

    const-string v0, "com.miui.player"

    invoke-virtual {p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/zuimeia/ui/musiccontroller/MusicControlUtils;->getCurMediaPlayerComponentName(Landroid/content/Context;)Landroid/content/ComponentName;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_2a

    .line 633
    invoke-virtual {p0, v3}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->setVisibility(I)V

    .line 634
    invoke-direct {p0, v2}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->performVisibilityChangeListener(Z)V

    .line 641
    :cond_29
    :goto_29
    return-void

    .line 635
    :cond_2a
    if-nez p1, :cond_29

    invoke-virtual {p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->getVisibility()I

    move-result v0

    if-eqz v0, :cond_29

    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mAudioManager:Landroid/media/AudioManager;

    invoke-virtual {v0}, Landroid/media/AudioManager;->isMusicActive()Z

    move-result v0

    if-eqz v0, :cond_29

    .line 636
    invoke-virtual {p0, v2}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->setVisibility(I)V

    .line 637
    invoke-direct {p0, v2}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->performVisibilityChangeListener(Z)V

    goto :goto_29
.end method

.method public onClientMetadataUpdate(Ljava/lang/String;Ljava/lang/String;)V
    .registers 7
    .param p1, "track"    # Ljava/lang/String;
    .param p2, "artist"    # Ljava/lang/String;

    .prologue
    .line 615
    iget-boolean v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mUseNewApi:Z

    if-nez v0, :cond_7

    .line 616
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mUseNewApi:Z

    .line 619
    :cond_7
    iget-object v1, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMusicNameTxt:Landroid/widget/TextView;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_3a

    const-string v0, ""

    :goto_1a
    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 622
    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mHandler:Landroid/os/Handler;

    iget-object v1, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->updatePlayStatusTask:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 623
    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mHandler:Landroid/os/Handler;

    iget-object v1, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->updatePlayStatusTask:Ljava/lang/Runnable;

    const-wide/16 v2, 0xbb8

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 624
    return-void

    .line 619
    :cond_3a
    const-string v0, " - "

    goto :goto_1a
.end method

.method public onClientPlaybackStateUpdate(Z)V
    .registers 4
    .param p1, "playing"    # Z

    .prologue
    .line 604
    iget-boolean v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mUseNewApi:Z

    if-nez v0, :cond_7

    .line 605
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mUseNewApi:Z

    .line 608
    :cond_7
    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mHandler:Landroid/os/Handler;

    iget-object v1, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->updatePlayStatusTask:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 609
    iput-boolean p1, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mIsMusicActive:Z

    .line 610
    invoke-direct {p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->updatePlayPauseBtnStatus()V

    .line 611
    return-void
.end method

.method public onMetaChanged(Ljava/lang/String;Ljava/lang/String;)V
    .registers 7
    .param p1, "track"    # Ljava/lang/String;
    .param p2, "artist"    # Ljava/lang/String;

    .prologue
    .line 580
    iget-boolean v1, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mUseNewApi:Z

    if-nez v1, :cond_3a

    .line 581
    invoke-virtual {p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/zuimeia/ui/musiccontroller/MusicControlUtils;->getCurMediaPlayerComponentName(Landroid/content/Context;)Landroid/content/ComponentName;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;

    move-result-object v0

    .line 582
    .local v0, "curMediaPlayerPackage":Ljava/lang/String;
    iget-object v1, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mUnsupportOldMusicApiList:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_3a

    .line 583
    iget-object v2, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMusicNameTxt:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_3b

    const-string v1, ""

    :goto_2b
    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 589
    .end local v0    # "curMediaPlayerPackage":Ljava/lang/String;
    :cond_3a
    return-void

    .line 583
    .restart local v0    # "curMediaPlayerPackage":Ljava/lang/String;
    :cond_3b
    const-string v1, " - "

    goto :goto_2b
.end method

.method public onPlayStateChanged(Ljava/lang/String;Ljava/lang/String;)V
    .registers 9
    .param p1, "track"    # Ljava/lang/String;
    .param p2, "artist"    # Ljava/lang/String;

    .prologue
    .line 564
    iget-boolean v1, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mUseNewApi:Z

    if-nez v1, :cond_28

    .line 565
    invoke-virtual {p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/zuimeia/ui/musiccontroller/MusicControlUtils;->getCurMediaPlayerComponentName(Landroid/content/Context;)Landroid/content/ComponentName;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;

    move-result-object v0

    .line 566
    .local v0, "curMediaPlayerPackage":Ljava/lang/String;
    iget-object v1, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mUnsupportOldMusicApiList:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_28

    .line 567
    iget-object v1, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mHandler:Landroid/os/Handler;

    iget-object v2, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->updatePlayStatusTask:Ljava/lang/Runnable;

    invoke-virtual {v1, v2}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 568
    iget-object v1, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mHandler:Landroid/os/Handler;

    iget-object v2, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->updatePlayStatusTask:Ljava/lang/Runnable;

    const-wide/16 v4, 0xbb8

    invoke-virtual {v1, v2, v4, v5}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 575
    .end local v0    # "curMediaPlayerPackage":Ljava/lang/String;
    :cond_28
    return-void
.end method

.method public setMusicUpdateListener(Landroid/media/RemoteController$OnClientUpdateListener;)V
    .registers 4
    .param p1, "listener"    # Landroid/media/RemoteController$OnClientUpdateListener;
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    .prologue
    .line 327
    if-eqz p1, :cond_1d

    .line 328
    new-instance v0, Landroid/media/RemoteController;

    invoke-virtual {p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1, p1}, Landroid/media/RemoteController;-><init>(Landroid/content/Context;Landroid/media/RemoteController$OnClientUpdateListener;)V

    iput-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mRemoteController:Landroid/media/RemoteController;

    .line 329
    const-string v0, "MyMusic"

    const-string v1, "init RemoteController"

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 331
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x15

    if-lt v0, v1, :cond_1d

    .line 332
    invoke-direct {p0, p1}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->registerMediaContorller(Landroid/media/RemoteController$OnClientUpdateListener;)V

    .line 335
    :cond_1d
    return-void
.end method

.method public setOnMusicPlayStateChangeListener(Lcom/zuimeia/ui/musiccontroller/MusicControllerView$OnMusicPlayStateChangeListener;)V
    .registers 2
    .param p1, "listener"    # Lcom/zuimeia/ui/musiccontroller/MusicControllerView$OnMusicPlayStateChangeListener;

    .prologue
    .line 644
    iput-object p1, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMusicPlayStateChanegeListener:Lcom/zuimeia/ui/musiccontroller/MusicControllerView$OnMusicPlayStateChangeListener;

    .line 645
    return-void
.end method

.method public setShowingMusicInfo(Z)V
    .registers 4
    .param p1, "showing"    # Z

    .prologue
    .line 451
    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMusicNoteImg:Landroid/widget/ImageView;

    invoke-direct {p0, v0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->cancelAnimation(Landroid/view/View;)V

    .line 452
    iget-object v1, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMusicInfoBox:Landroid/view/View;

    if-eqz p1, :cond_e

    const/4 v0, 0x0

    :goto_a
    invoke-virtual {v1, v0}, Landroid/view/View;->setVisibility(I)V

    .line 453
    return-void

    .line 452
    :cond_e
    const/16 v0, 0x8

    goto :goto_a
.end method

.method public startMusicNoteAnimation()V
    .registers 3

    .prologue
    .line 456
    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMusicPlayStateChanegeListener:Lcom/zuimeia/ui/musiccontroller/MusicControllerView$OnMusicPlayStateChangeListener;

    if-eqz v0, :cond_a

    .line 457
    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMusicPlayStateChanegeListener:Lcom/zuimeia/ui/musiccontroller/MusicControllerView$OnMusicPlayStateChangeListener;

    const/4 v1, 0x1

    invoke-interface {v0, v1}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$OnMusicPlayStateChangeListener;->onPlayStateChanged(Z)V

    .line 460
    :cond_a
    iget-boolean v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mIsMusicActive:Z

    if-eqz v0, :cond_1c

    invoke-virtual {p0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->getVisibility()I

    move-result v0

    if-nez v0, :cond_1c

    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMusicInfoBox:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

    move-result v0

    if-eqz v0, :cond_1d

    .line 465
    :cond_1c
    :goto_1c
    return-void

    .line 464
    :cond_1d
    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMusicNoteImg:Landroid/widget/ImageView;

    invoke-direct {p0, v0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->animateFadeInOut(Landroid/view/View;)V

    goto :goto_1c
.end method

.method public stopMusicNoteAnimation()V
    .registers 3

    .prologue
    .line 468
    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMusicNoteImg:Landroid/widget/ImageView;

    invoke-direct {p0, v0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->cancelAnimation(Landroid/view/View;)V

    .line 470
    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMusicPlayStateChanegeListener:Lcom/zuimeia/ui/musiccontroller/MusicControllerView$OnMusicPlayStateChangeListener;

    if-eqz v0, :cond_f

    .line 471
    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMusicPlayStateChanegeListener:Lcom/zuimeia/ui/musiccontroller/MusicControllerView$OnMusicPlayStateChangeListener;

    const/4 v1, 0x0

    invoke-interface {v0, v1}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$OnMusicPlayStateChangeListener;->onPlayStateChanged(Z)V

    .line 473
    :cond_f
    return-void
.end method
